package org.xxpay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.xxpay.core.entity.StatisticsMch;
import org.xxpay.core.entity.StatisticsMchExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StatisticsMchMapper {
    long countByExample(StatisticsMchExample example);

    int deleteByExample(StatisticsMchExample example);

    int deleteByPrimaryKey(@Param("mchId") Long mchId, @Param("statisticsDate") Date statisticsDate);

    int insert(StatisticsMch record);

    int insertSelective(StatisticsMch record);

    List<StatisticsMch> selectByExample(StatisticsMchExample example);

    StatisticsMch selectByPrimaryKey(@Param("mchId") Long mchId, @Param("statisticsDate") Date statisticsDate);

    int updateByExampleSelective(@Param("record") StatisticsMch record, @Param("example") StatisticsMchExample example);

    int updateByExample(@Param("record") StatisticsMch record, @Param("example") StatisticsMchExample example);

    int updateByPrimaryKeySelective(StatisticsMch record);

    int updateByPrimaryKey(StatisticsMch record);

    int updateStatistics(StatisticsMch updateRecord);

    Map countAll(Map param);

    Long count(Map param);

    List<Map> list(Map param);

    Long count2MchTop(Map param);

    List<Map> mchTopList(Map param);
}